package vn.nt.healthcare.server.ws.repositories;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import vn.nt.healthcare.server.ws.domain.Location;

public interface LocationRepository extends JpaRepository<Location, String> {
	public Location findByUuid(String uuid);
	@Query("SELECT lc FROM Location lc WHERE lc.company.company_uuid = ?1")
	public List<Location> findCompanyUuid(String company_uuid);
}
